home *** CD-ROM | disk | FTP | other *** search
/ Remix Doll 3: Dirty Sally / Remix Doll 3: Dirty Sally.iso / drtyslly.exe / SHARED.DXR / 04972_TView.ls < prev    next >
Encoding:
Text File  |  1995-02-11  |  3.2 KB  |  214 lines

  1. property fSprNum, fID, fSupervisor, fSavedLocH, fSavedLocV, fSleepTime, fLastWakeTime, fOffStage
  2.  
  3. on birth me, vSprNum, vID
  4.   mIView(me, vSprNum, vID)
  5.   return me
  6. end
  7.  
  8. on mIView me, vSprNum, vID
  9.   set fSprNum to vSprNum
  10.   set fID to vID
  11.   mStSupervisor(me, 0)
  12.   mStSleepTime(me, 0)
  13.   set fOffStage to 0
  14. end
  15.  
  16. on mISleep me
  17.   mStSleepTime(me, 0)
  18.   mStLastWakeTime(me, 0)
  19. end
  20.  
  21. on mDeath me
  22.   nothing()
  23. end
  24.  
  25. on mGtSprNum me
  26.   return fSprNum
  27. end
  28.  
  29. on mStCastNum me, vCastNum
  30.   set the castNum of sprite mGtSprNum(me) to vCastNum
  31. end
  32.  
  33. on mGtCastNum me
  34.   return the castNum of sprite mGtSprNum(me)
  35. end
  36.  
  37. on mGtID me
  38.   return fID
  39. end
  40.  
  41. on mStSupervisor me, vSupervisor
  42.   set fSupervisor to vSupervisor
  43. end
  44.  
  45. on mGtSupervisor me
  46.   return fSupervisor
  47. end
  48.  
  49. on mStSleepTime me, vSleepTime
  50.   set fSleepTime to vSleepTime
  51.   mStLastWakeTime(me, the ticks)
  52. end
  53.  
  54. on mGtSleepTime me
  55.   return fSleepTime
  56. end
  57.  
  58. on mStLastWakeTime me, vWakeTime
  59.   set fLastWakeTime to vWakeTime
  60. end
  61.  
  62. on mGtLastWakeTime me
  63.   return fLastWakeTime
  64. end
  65.  
  66. on mStPuppet me, vPuppetON
  67.   set the puppet of sprite mGtSprNum(me) to vPuppetON
  68. end
  69.  
  70. on mIsPuppet me
  71.   return the puppet of sprite mGtSprNum(me)
  72. end
  73.  
  74. on mPuppetOn me
  75.   mStPuppet(me, 1)
  76. end
  77.  
  78. on mPuppetOff me
  79.   mStPuppet(me, 0)
  80. end
  81.  
  82. on mStLocH me, vLocH
  83.   if mIsHidden(fSupervisor) then
  84.     set fSavedLocH to vLocH
  85.   else
  86.     set the locH of sprite mGtSprNum(me) to vLocH
  87.   end if
  88. end
  89.  
  90. on mStLocV me, vLocV
  91.   if mIsHidden(fSupervisor) then
  92.     set fSavedLocV to vLocV
  93.   else
  94.     set the locV of sprite mGtSprNum(me) to vLocV
  95.   end if
  96. end
  97.  
  98. on mGtLocH me
  99.   return the locH of sprite mGtSprNum(me)
  100. end
  101.  
  102. on mGtLocV me
  103.   return the locV of sprite mGtSprNum(me)
  104. end
  105.  
  106. on mGtSavedLocH me
  107.   return fSavedLocH
  108. end
  109.  
  110. on mGtSavedLocV me
  111.   return fSavedLocV
  112. end
  113.  
  114. on mIsOffStage me
  115.   return fOffStage
  116. end
  117.  
  118. on mOffStage me
  119.   if not fOffStage then
  120.     if not mIsHidden(fSupervisor) then
  121.       mSaveLoc(me)
  122.       mForceHide(me)
  123.     end if
  124.     set fOffStage to 1
  125.   end if
  126. end
  127.  
  128. on mOnStage me
  129.   if fOffStage then
  130.     if not mIsHidden(fSupervisor) then
  131.       mRestoreLoc(me)
  132.     end if
  133.     set fOffStage to 0
  134.   end if
  135. end
  136.  
  137. on mOnStageAt me, vLocH, vLocV
  138.   if fOffStage then
  139.     mStLocH(me, vLocH)
  140.     mStLocV(me, vLocV)
  141.     set fOffStage to 0
  142.   end if
  143. end
  144.  
  145. on mSaveLoc me
  146.   set fSavedLocH to mGtLocH(me)
  147.   set fSavedLocV to mGtLocV(me)
  148. end
  149.  
  150. on mRestoreLoc me
  151.   mStLocH(me, fSavedLocH)
  152.   mStLocV(me, fSavedLocV)
  153. end
  154.  
  155. on mForceHide me
  156.   mStLocH(me, -1000)
  157.   mStLocV(me, -1000)
  158. end
  159.  
  160. on mVisible me
  161.   set the visible of sprite mGtSprNum(me) to 1
  162. end
  163.  
  164. on mInvisible me
  165.   set the visible of sprite mGtSprNum(me) to 0
  166. end
  167.  
  168. on mIsVisible me
  169.   return the visible of sprite mGtSprNum(me)
  170. end
  171.  
  172. on mStInk me, vInkNum
  173.   set the ink of sprite mGtSprNum(me) to vInkNum
  174. end
  175.  
  176. on mGtInk me
  177.   return the ink of sprite mGtSprNum(me)
  178. end
  179.  
  180. on mStCurs me, vCursNum
  181.   set the cursor of sprite mGtSprNum(me) to vCursNum
  182. end
  183.  
  184. on mGtCurs me
  185.   return the cursor of sprite mGtSprNum(me)
  186. end
  187.  
  188. on mMouseDown me
  189.   nothing()
  190. end
  191.  
  192. on mMouseUp me
  193.   nothing()
  194. end
  195.  
  196. on mEnterMouse me
  197.   nothing()
  198. end
  199.  
  200. on mLeaveMouse me
  201.   nothing()
  202. end
  203.  
  204. on mIdle me
  205.   nothing()
  206. end
  207.  
  208. on mWakeUp me
  209.   if (the ticks - mGtLastWakeTime(me)) > mGtSleepTime(me) then
  210.     mIdle(me)
  211.     mStLastWakeTime(me, the ticks)
  212.   end if
  213. end
  214.